package cn.gson.crmdemo.model.vo;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.gson.crmdemo.model.pojo.Order;
import cn.gson.crmdemo.model.pojo.Product;

@Entity
@Table(name = "orderdetailed")
public class OrderdetailedVo {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="od_id")
	private int odId;

	@Column(name="od_damount")
	private int odDamount;

	@Column(name="od_discount")
	private BigDecimal odDiscount;

	@Column(name="od_isornotuse")
	private int odIsornotuse;

	@Column(name="od_number")
	private int odNumber;

	@Column(name="od_offer")
	private BigDecimal odOffer;

	@Column(name="od_remark")
	private String odRemark;

	@Column(name="od_sum")
	private BigDecimal odSum;

	@Column(name="o_id")
	private int order;

	@Column(name="cp_id")
	private int product;

	public int getOdId() {
		return odId;
	}

	public void setOdId(int odId) {
		this.odId = odId;
	}

	public int getOdDamount() {
		return odDamount;
	}

	public void setOdDamount(int odDamount) {
		this.odDamount = odDamount;
	}

	public BigDecimal getOdDiscount() {
		return odDiscount;
	}

	public void setOdDiscount(BigDecimal odDiscount) {
		this.odDiscount = odDiscount;
	}

	public int getOdIsornotuse() {
		return odIsornotuse;
	}

	public void setOdIsornotuse(int odIsornotuse) {
		this.odIsornotuse = odIsornotuse;
	}

	public int getOdNumber() {
		return odNumber;
	}

	public void setOdNumber(int odNumber) {
		this.odNumber = odNumber;
	}

	public BigDecimal getOdOffer() {
		return odOffer;
	}

	public void setOdOffer(BigDecimal odOffer) {
		this.odOffer = odOffer;
	}

	public String getOdRemark() {
		return odRemark;
	}

	public void setOdRemark(String odRemark) {
		this.odRemark = odRemark;
	}

	public BigDecimal getOdSum() {
		return odSum;
	}

	public void setOdSum(BigDecimal odSum) {
		this.odSum = odSum;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public int getProduct() {
		return product;
	}

	public void setProduct(int product) {
		this.product = product;
	}

	public OrderdetailedVo(int odId, int odDamount, BigDecimal odDiscount, int odIsornotuse, int odNumber,
			BigDecimal odOffer, String odRemark, BigDecimal odSum, int order, int product) {
		super();
		this.odId = odId;
		this.odDamount = odDamount;
		this.odDiscount = odDiscount;
		this.odIsornotuse = odIsornotuse;
		this.odNumber = odNumber;
		this.odOffer = odOffer;
		this.odRemark = odRemark;
		this.odSum = odSum;
		this.order = order;
		this.product = product;
	}

	public OrderdetailedVo() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "OrderdetailedVo [odId=" + odId + ", odDamount=" + odDamount + ", odDiscount=" + odDiscount
				+ ", odIsornotuse=" + odIsornotuse + ", odNumber=" + odNumber + ", odOffer=" + odOffer + ", odRemark="
				+ odRemark + ", odSum=" + odSum + ", order=" + order + ", product=" + product + "]";
	}
	
	
	
}
